{% extends "base.html" %}
{% block menu_bar%}
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#my-navbar-menu">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">GMS</a>
    </div>

    <div class="collapse navbar-collapse" id="my-navbar-menu">
      <ul class="nav navbar-nav">
        <li class="active"><a href="/repository/repository_list/">仓库管理<span class="sr-only">(current)</span></a></li>
      </ul>
       <ul class="nav navbar-nav">
        <li><a href="#">用户管理<span class="sr-only">(current)</span></a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li><a href="#">权限管理<span class="sr-only">(current)</span></a></li>
      </ul>

      <form class="navbar-form navbar-left" role="search">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <li>
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
            {{username}}<span class="caret"></span>
          </a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="{% url 'xadmin:sys_setting_page' %}" class="active">设置</a></li>
            <li><a href="{% url 'xadmin:sys_logout' %}">注销</a></li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>
{% endblock %}

{% block script %}
{% endblock%}